# $OpenBSD: Makefile,v 1.7 2015/08/12 12:33:02 zhuk Exp $

COMMENT =		non-linear video editor for KDE
VERSION =		0.9.10
DISTNAME =		kdenlive-${VERSION}
CATEGORIES =		multimedia

HOMEPAGE =		http://www.kdenlive.org/
MAINTAINER =		KDE porting team <openbsd-kde@googlegroups.com>

# GPLv2+
PERMIT_PACKAGE_CDROM =	Yes

WANTLIB =  c m pthread
WANTLIB += GL GLU ICE SM X11 Xext
WANTLIB += lib/qt4/QtDBus lib/qt4/QtGui lib/qt4/QtNetwork
WANTLIB += lib/qt4/QtOpenGL lib/qt4/QtScript lib/qt4/QtSvg lib/qt4/QtXml
WANTLIB += ${KDE4LIB}/kdeui ${KDE4LIB}/kio ${KDE4LIB}/knewstuff3
WANTLIB += ${KDE4LIB}/knotifyconfig ${KDE4LIB}/krossui
WANTLIB += ${KDE4LIB}/nepomukcore ${KDE4LIB}/solid
WANTLIB += mlt mlt++ qjson soprano

MASTER_SITES =		${MASTER_SITE_KDE:=stable/kdenlive/${VERSION}/src/}
EXTRACT_SUFX =		.tar.bz2

MODULES =		x11/kde4 devel/gettext

RUN_DEPENDS =		devel/desktop-file-utils \
			misc/shared-mime-info \
			multimedia/mlt,-gpl2 \
			x11/gtk+3,-guic

LIB_DEPENDS =		devel/qjson \
			multimedia/mlt,-main \
			${MODKDE4_DEP_DIR}/nepomuk-core>=${MODKDE4_DEP_VERSION}

CONFIGURE_ARGS =	-DCMAKE_DISABLE_FIND_PACKAGE_LibV4L2=Yes

MODKDE4_GETTEXT_MARKER =	kdenlive.po
# upstream bug, putting all l10n files at the same place
#post-patch:
#	cd ${WRKSRC}/po; for lc in */CMakeLists.txt; do \
#		l=$${lc%/CMakeLists.txt}; \
#		perl -pi -e "s,\(fr ,\($$l ," $$lc; \
#	done

.include <bsd.port.mk>
